package com.dajie.pt.model;

import java.text.ParseException;
import java.util.Date;

import com.dajie.pt.entity.base.BaseEntity;
import com.dajie.pt.utils.DateTimeUtils;
import com.dajie.pt.utils.Weight;

public class BasicInfo extends BaseEntity
{

	private static final long serialVersionUID = 8286008753207925888L;

	@Weight(value=60)
	private String name;

	@Weight(value=60)
	private Integer livecity;

	private String resumeAtta;

	@Weight(value=60)
	private Integer gender;

	@Weight(value=60)
	private Date birthday;

	@Weight(value=20)
	private Integer domicile;

	private String photo;

	@Weight(value=20)
	private Integer workYears;

	@Weight(value=20)
	private String qq;

	public BasicInfo()
	{
	}

	public BasicInfo(String name, Integer gender, String birthday, Integer domicile, Integer workYear, String qq)
			throws ParseException
	{
		this.name = name;
		this.gender = gender;
		this.birthday = DateTimeUtils.convertStringToDate(birthday);
		this.domicile = domicile;
		this.workYears = workYear;
		this.qq = qq;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public Integer getLivecity()
	{
		return livecity;
	}

	public void setLivecity(Integer livecity)
	{
		this.livecity = livecity;
	}

	public String getResumeAtta()
	{
		return resumeAtta;
	}

	public void setResumeAtta(String resumeAtta)
	{
		this.resumeAtta = resumeAtta;
	}

	public Integer getGender()
	{
		return gender;
	}

	public void setGender(Integer gender)
	{
		this.gender = gender;
	}

	public Date getBirthday()
	{
		return birthday;
	}

	public void setBirthday(Object birthday)
	{
		this.birthday = this.castToDate(birthday);
	}

	public Integer getDomicile()
	{
		return domicile;
	}

	public void setDomicile(Integer domicile)
	{
		this.domicile = domicile;
	}

	public String getPhoto()
	{
		return photo;
	}

	public void setPhoto(String photo)
	{
		this.photo = photo;
	}

	public Integer getWorkYears()
	{
		return workYears;
	}

	public void setWorkYears(Integer workYears)
	{
		this.workYears = workYears;
	}

	public String getQq()
	{
		return qq;
	}

	public void setQq(String qq)
	{
		this.qq = qq;
	}

}
